]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-doc-system: fix %-escaping code in shell_doc_system_open()
authorDan Winship <danw@gnome.org>
Mon, 24 Jan 2011 17:30:34 +0000 (12:30 -0500)
committerDan Winship <danw@gnome.org>
Mon, 24 Jan 2011 18:35:03 +0000 (13:35 -0500)
It was escaping app_exec into app_exec_quoted, but then forgot about
it and went back to using app_exec.

https://bugzilla.gnome.org/show_bug.cgi?id=640447

src/shell-doc-system.c

index dab64e9a0d37e6b63b71cc6921f329edc6df3478..3ee51e6ba1b45c138f68853f6cc6a9c446aa6d54 100644 (file)
@@ -285,7 +285,8 @@ shell_doc_system_open (ShellDocSystem *system,
           app_exec_quoted = g_regex_replace (regex, app_exec, -1, 0, "%%", 0, NULL);
           g_regex_unref (regex);
 
-          app_info = g_app_info_create_from_commandline (app_exec, NULL, 0, NULL);
+          app_info = g_app_info_create_from_commandline (app_exec_quoted, NULL, 0, NULL);
+          g_free (app_exec_quoted);
 
           /* The point of passing an app launch context to
              launch() is mostly to get startup notification and